package config

type MySQLConfig struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Database string `yaml:"database"`
}

// LoadMySQLConfig 从全局配置中加载MySQL配置
func LoadMySQLConfig() *MySQLConfig {
	return &AppConfig.MySQL
}